<!--
 * @Author: LTT 17386012013@163.com
 * @Date: 2024-08-16 14:13:26
 * @Description:
 * @LastEditTime: 2024-08-16 14:28:21
 * @LastEditors: LTT 17386012013@163.com
-->

<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
	</head>
		<script>
			let obj = {
				name: 'zhangsan',
				age: 29,
				sport: 'basketball',
				school: 'middle'
			};
			const { name, ...rest } = obj;
			console.log('rest', rest);
		</script>
	</body>
</html>

